package com.ctshk.rpc.iotc.dto;

import com.ctshk.common.model.PageResponse;
import com.ctshk.rpc.iotc.req.OperateJson;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 银联优惠
 * </p>
 *
 * @author 谢诗宏
 * @since 2021-01-22
 */
@Data
@ApiModel(value = "OperateBankPreferenceQueryDTO对象", description = "银联优惠详情DTO")
public class OperateBankPreferenceQueryDTO implements Serializable {

    private static final long serialVersionUID = 5709919464534382383L;
    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "活动ID")
    private String activityCode;

    @ApiModelProperty(value = "银行ID")
    private Long bankId;

    @ApiModelProperty(value = "银行名称")
    private String bankName;

    @ApiModelProperty(value = "活动总金额")
    private BigDecimal totalAmount;

    @ApiModelProperty(value = "活动名称")
    private String name;

    @ApiModelProperty(value = "活动有效期起始")
    private LocalDateTime activityBegin;

    @ApiModelProperty(value = "活动有效期截至")
    private LocalDateTime activityEnd;

    @ApiModelProperty(value = "活动周期")
    private Integer activityCycle;

    @ApiModelProperty(value = "活动周期星期数据")
    private String activityCycleWeeks;

    @ApiModelProperty(value = "优惠类型")
    private Integer discountType;

    @ApiModelProperty(value = "满足X金额")
    private BigDecimal fullAmount;

    @ApiModelProperty(value = "实际运算减扣金额")
    private BigDecimal discount;

    @ApiModelProperty(value = "减X金额")
    private BigDecimal reductionAmount;

    @ApiModelProperty(value = "百分比折扣")
    private Double discountPercent;

    @ApiModelProperty(value = "优惠封顶")
    private BigDecimal maxDiscount;

    @ApiModelProperty(value = "优惠总名额")
    private Integer totalDiscountQuota;

    @ApiModelProperty(value = "卡号设置")
    private String cardNumbers;

    @ApiModelProperty(value = "优惠说明")
    private String discountExplain;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "业务类型((1旅行团2定制包团3机票4酒店5火车6门票))")
    private Integer businessType;

    @ApiModelProperty(value = "对应产品ID")
    private List<Long> idList;

    @ApiModelProperty(value = "产品列表")
    List<Object> airTicketPage;

    @ApiModelProperty(value = "适用渠道(Json格式）")
    private List<OperateJson> channelsJson;

    @ApiModelProperty(value = "适用部门(Json格式)")
    private List<OperateJson> departmentsJson;

    @ApiModelProperty(value = "优惠对象(Json格式)")
    private List<OperateJson> discountObjectsJson;

    @ApiModelProperty(value = "推广码状态(0 已撤回 1 未提交 2 审批中 3 审批不通过 4 有效 5暂停  6无效)")
    private Integer status;
}
